body {
  margin: 0;
  padding: 0;
  background: url(/images/background.jpg) repeat top left;
  color: rgba(0, 0, 0, 0.5);
  font-family: Arial, sans-serif;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1 {
  margin: 0px 0px 35px 0px;
  font-weight: normal;
}

h1 a {
  font-size: 36pt;
  color: #FFC;
  font-family: 'Bowlby One', sans-serif;
  text-shadow: 2px 2px 0px #630;
}

h2 {
  font-family: 'Bowlby One', sans-serif;
  margin: 0px;
  font-weight: normal;
  color: rgba(0, 0, 0, 0.6);
}

h3 {
  margin: 0px 0px 20px;
}

ul {
  padding: 0;
}

th, td {
  padding: 5px 10px;
}

th {
  color: #ffc;
  font-weight: normal;
  background: rgba(0, 0, 0, 0.3);
}

td {
  color: #421;
  text-align: center;
  background: rgba(0, 0, 0, 0.1);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

.paused #playing,
.playing #paused {
  display: none;
}

.paused #paused,
.playing #playing {
  display: block;
}

.playing #paused {
  display: none;
}

#paused {
  padding-left: 120px;
}

#paused p {
  color: rgba(0, 0, 0, 0.6);
}

#paused textarea {
  background: rgba(255, 255, 150, 0.8);
  color: rgba(0, 0, 0, 0.6);
  padding: 10px;
  font-family: monospace;
  display: block;
  border: none;
  width: 450px;
  margin-top: 10px;
  height: 15px;
  font-size: 14px;
  resize: none;
  overflow:hidden;
}

#welcome{
  padding: 0px 20px;
}

#welcome h2{
  margin-bottom: 20px;
}

#container {
  margin: 0 auto;
  position: relative;
  width: 960px;
}

#score {
  font-family: 'Bowlby One', sans-serif;
  position: absolute;
  top: 0px;
  right: 0px;
}

#num_pairs {
  font-family: 'Bowlby One', sans-serif;
  font-size: 24pt;
  position: absolute;
  top: 50px;
  right: 13px;
  width: 150px;
  text-align: right;
}

#num_pairs span {
  font-size: 14px;
  position: relative;
  top: -9px;
  margin-left: 5px;
}

#time {
  position: absolute;
  top: 0px;
  right: 10px;
  font-size: 42px;
  width: 135px;
  color: rgba(0, 0, 0, 0.5)
}

.players {
  width: 120px;
  position: absolute;
  padding: 0px;
}

.player{
     -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
          border-radius: 2px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  width: 48px;
  height: 48px;
  display: block;
  margin: 0px 0px 15px;
  -webkit-box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) inset, 1px 1px 0px rgba(255, 255, 255, 0.2);
     -mox-box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) inset, 1px 1px 0px rgba(255, 255, 255, 0.2);
          box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) inset, 1px 1px 0px rgba(255, 255, 255, 0.2);
  font-size: 40px;
  font-family: 'Bowlby One', sans-serif;
  line-height: 48px;
  text-align: center;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.3);
}

.player img{
  display: inline-block;
}

.player div{
  position: absolute;
  width: 48px;
  height: 48px;
  padding: 4px;
     -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
          border-radius: 2px;
  top: 0px;
  left: 0px;
  opacity: 0.3;
}

li.player span.points {
  position: absolute;
  top: 0px;
  font-size: 20px;
  right: -45px;
  line-height: 20px;
  color: white;
  padding: 5px;
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.5);
  width: 28px;
  text-align: center;
  color: rgba(0, 0, 0, 0.5);
     -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
          border-radius: 2px;
  -webkit-box-shadow: 1px 1px 1px rgba(255, 255, 255, 0.3) inset, 1px 1px 2px rgba(0, 0, 0, 0.3);
     -moz-box-shadow: 1px 1px 1px rgba(255, 255, 255, 0.3) inset, 1px 1px 2px rgba(0, 0, 0, 0.3);
          box-shadow: 1px 1px 1px rgba(255, 255, 255, 0.3) inset, 1px 1px 2px rgba(0, 0, 0, 0.3);
}

li.player span.host {
  font-size: 10px;
  line-height: 10px;
  font-family: sans-serif;
  color: #ffc;
  position: absolute;
  top: 6px;
  left: 6px;
}

ul.ranking {
  position: static;
  width: 100%;
}

ul.ranking li {
  display: inline-block;
  margin: 0px 74px 15px 0px;
}

ul.ranking img.medal {
  position: absolute;
  top: 26px;
  right: -41px;
}

.mouse{
  position: absolute;
  height: 22px;
  width: 22px;
  line-height: 22px;
  min-width: 15px;
  z-index: 100;
  pointer-events: none;
}
.mouse.color_ff6666{ background: transparent url('/images/cursors/cursor_ff6666.png') no-repeat; }
.mouse.color_66ff66{ background: transparent url('/images/cursors/cursor_66ff66.png') no-repeat; }
.mouse.color_6666ff{ background: transparent url('/images/cursors/cursor_6666ff.png') no-repeat; }
.mouse.color_ff66ff{ background: transparent url('/images/cursors/cursor_ff66ff.png') no-repeat; }
.mouse.color_ffff66{ background: transparent url('/images/cursors/cursor_ffff66.png') no-repeat; }
.mouse.color_66ffff{ background: transparent url('/images/cursors/cursor_66ffff.png') no-repeat; }

#canvas {
  position: relative;
  text-align: center;
}

.box {
  padding: 20px;
  font-size: 14pt;
  background: #ffd;
  background: rgba(255, 255, 200, 0.5);
  -moz-border-radius:    3px;
  -webkit-border-radius: 3px;
  border-radius:         3px;
  border-top: 1px solid #c91;
  border-left: 1px solid #c91;
  border-right: 1px solid #fe4;
  border-bottom: 1px solid #fe4;
}

/* dialogs */
.dialog {
  display: none;
}

.dialog_modal {
  height: 100%;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
}

.dialog_content {
  position: fixed;
  top: 30%;
  left: 50%;
  width: 400px;
  margin-left: -200px;
  padding: 20px;
  z-index: 11000;
     -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
          border-radius: 2px;
     -moz-box-shadow: #222 0px 0px 10px;
  -webkit-box-shadow: #222 0px 0px 10px;
          box-shadow: #222 0px 0px 10px;
  background: url(http://fc00.deviantart.net/fs30/i/2008/148/b/8/Wood_floor_by_gnrbishop.jpg);
  border: 6px solid rgba(0, 0, 0, 0.4);
}

.dialog_content .btn {
  margin-right: 20px;
}

.fb_button ,
.tw_button {
  width: 150px;
  height: 22px;
  display: block;
  text-indent: -9999px;
}

.fb_button {
  background: url(/images/facebook_signin.png);
}

.tw_button {
  background: url(/images/twitter_signin.png);
}

.btn {
  cursor: pointer;
  font-size: 14px;
  display: inline-block;
  padding: 4px 13px 5px;
  color: #fff;
  line-height: normal;

     -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
          border-radius: 2px;
     -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 1px 1px 2px rgba(0,0,0,0.4);
  -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 1px 1px 2px rgba(0,0,0,0.4);
          box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 1px 1px 2px rgba(0,0,0,0.4);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  border-width: 1px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.3);

  background-color: #57a957;
  background-repeat: repeat-x;
  background-image: -khtml-gradient(linear, left top, left bottom, from(#62c462), to(#57a957));
  background-image: -moz-linear-gradient(top, #62c462, #57a957);
  background-image: -ms-linear-gradient(top, #62c462, #57a957);
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #62c462), color-stop(100%, #57a957));
  background-image: -webkit-linear-gradient(top, #62c462, #57a957);
  background-image: -o-linear-gradient(top, #62c462, #57a957);
  background-image: linear-gradient(top, #62c462, #57a957);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#62c462', endColorstr='#57a957', GradientType=0);
}

.btn:hover {
     -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 1px 1px 2px rgba(0,0,0,0.6);
  -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 1px 1px 2px rgba(0,0,0,0.6);
          box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 1px 1px 2px rgba(0,0,0,0.6);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.40);
  text-decoration: none;
}

.btn.blue {
  background-color: #339BB9;
  background-repeat: repeat-x;
  background-image: -khtml-gradient(linear, left top, left bottom, from(#5bc0de), to(#339bb9));
  background-image: -moz-linear-gradient(top, #5bc0de, #339bb9);
  background-image: -ms-linear-gradient(top, #5bc0de, #339bb9);
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #5bc0de), color-stop(100%, #339bb9));
  background-image: -webkit-linear-gradient(top, #5bc0de, #339bb9);
  background-image: -o-linear-gradient(top, #5bc0de, #339bb9);
  background-image: linear-gradient(top, #5bc0de, #339bb9);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#5bc0de', endColorstr='#339bb9', GradientType=0);
}

#logout {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 2px 8px;
  font-size: 12px;
}

.total_score {
  float: right;
  width: 240px;
  padding: 10px;
  background: rgba(255, 255, 200, 0.5);
  font-size: 24px;
  font-family: 'Bowlby One', sans-serif;
  font-weight: normal;
  text-align: center;
  display: none;
}

.btn.rules, .btn.scores {
  position: absolute;
  top: 22px;
  left: 460px;
}

.btn.scores {
  left: 530px;
}

.btn.rules {
  left: 460px;
}

.room, .score {
     -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
          border-radius: 2px;
  background: rgba(0, 0, 0, 0.2);
  padding: 10px;
  display: block;
  margin: 0px 0px 15px;
  -webkit-box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2) inset, 1px 1px 0px rgba(255, 255, 255, 0.2);
     -mox-box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2) inset, 1px 1px 0px rgba(255, 255, 255, 0.2);
          box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2) inset, 1px 1px 0px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.3);
}

ul.scores {
  margin-left: -50px;
}

.score {
  display: inline-block;
  margin-left: 50px;
  text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.3);
  position: relative;
  margin-bottom: 50px;
  width: 264px;
}

.score strong.rank {
  font-size: 24px;
  display: inline-block;
  width: 40px;
  margin-right: 10px;
  text-align: left;
  vertical-align: top;
  position: absolute;
  top: -25px;
  left: 0px;
  color: #420;
  text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.2);
}

.score .info {
  display: inline-block;
  height: 48px;
  vertical-align: top;
  margin-left: 10px;
}

.score .name {
  display: block;
  color: #FFC;
  font-size: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 143px;
  white-space: nowrap;
}

.score .puntuation {
  color: #310;
  font-size: 30px;
  text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.2);
}

.score .time {
  font-size: 24px;
  margin-left: 10px;
}

.score .when {
  font-size: 12px;
  text-align: right;
  color: #fff;
  padding-left: 104px;
  position: absolute;
  top: -16px;
  right: 0px;
  opacity: 0.6;
}

.room {
  height: 34px;
}

.room strong {
  line-height: 34px;
}

.room a.btn {
  float: right;
}

.room ul{
  display: inline-block;
  padding: 0px;
}

.room strong{
  color: rgba(0, 0, 0, 0.5);
}

.room .player {
  width: 24px;
  height: 24px;
  line-height: 32px;
  display: inline-block;
  margin: 0 10px 0 0;
  font-size: 24px;
}

.play_alone .player {
  display: inline-block;
  margin: 0px 10px 0 0;
}

.play_alone a.btn {
  height: 48px;
  line-height: 48px;
  vertical-align: top;
  font-size: 24px;
}

.separator {
  -webkit-box-shadow: 0px 1px 0px rgba(255, 255, 255, 0.2);
     -mox-box-shadow: 0px 1px 0px rgba(255, 255, 255, 0.2);
          box-shadow: 0px 1px 0px rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  margin: 30px 0;
}

.create_room {
  display: none;
  width: 258px;
}

input.text {
  margin: 0 10px 0 0;
     -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
          border-radius: 2px;
  background: #fff;
  padding: 4px;
  -webkit-box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) inset, 1px 1px 0px rgba(255, 255, 255, 0.2);
     -mox-box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) inset, 1px 1px 0px rgba(255, 255, 255, 0.2);
          box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) inset, 1px 1px 0px rgba(255, 255, 255, 0.2);
  font-size: 15px;
  border: 1px solid #741;
}

.error {
  padding: 10px;
  background: rgba(255, 120, 130, 0.7);
     -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
          border-radius: 2px;
}

.error p {
  margin-top: 0;
}

.rule {
  background: rgba(255, 255, 200, 0.1);
  padding: 10px 20px;
  margin-bottom: 20px;
     -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
          border-radius: 2px;
  color: #420;
  text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.1);
}
